package com.xxx.springboot.service;

import com.xxx.springboot.pojo.bean.Product;
import io.redisearch.Query;
import io.redisearch.SearchResult;

import java.util.Map;

public interface ProductService {

    boolean addProduct(Product product);

    boolean updateProduct(String id, Double score, Map<String, Object> fields);

    boolean deleteProduct(String id);

    SearchResult searchProducts(String query);

    SearchResult searchProductsByQuery(Query query);
}
